import request from '@/utils/request'

export function listfaultDanger(query) {
  return request({
    url: '/fault/faultDanger/list',
    method: 'get',
    params: query
  })
}

export function createfaultDanger(data) {
  return request({
    url: '/fault/faultDanger/create',
    method: 'post',
    data
  })
}

export function readfaultDanger(data) {
  return request({
    url: '/fault/faultDanger/get/' + data.id,
    method: 'get'
  })
}

export function updatefaultDanger(data) {
  return request({
    url: '/fault/faultDanger/update',
    method: 'post',
    data
  })
}

export function deletefaultDanger(data) {
  return request({
    url: '/fault/faultDanger/delete/' + data.furgentno,
    method: 'delete'
  })
}
